package com.jlect.swebing.ui.client.menu;

import com.jlect.swebing.ui.client.GComponent;

/**
 * This item represents menu bar item component.
 *
 * Since {@link com.jlect.swebing.ui.client.menu.GMenuItem} could not be placed on menu bar (because it has different
 * view and behaviour) we wrap items with another component.
 *
 *
 *
 * @author Sergey Kozmin
 * @since 28.11.2007 11:10:59
 */
public interface MenuBarItem {
    public GComponent getView();

    /**
     * This method is called when component on the menu bar is made active.
     */
    public void activate();

    /**
     * This method is called when component on the menu bar is made inactive.
     */
    public void deActivate();

    /**
     * This method is called when component on the menu bar is made inactive.
     */
    public void performAction();
}
